<?php
/**
 * 由Kcvg友情实现的模拟SAE全文检索服务
 * @abstract 钱多多美女真漂亮啊。
 * @author Kcvg
 */
class SaeFTS {
    
    private static $errmsg = 'JiN4NTRFNTsmI3g1REYyOyYjeDdFQ0Y7JiN4OTY5MDsmI3g1RjYyOyYjeDU3Q0I7JiN4NTQwRDtOJiN4NTkxQTsmI3g1RTc0OyYjeEZGMEM7JiN4NTE5OTsmI3g3Njg0OyYjeDhGRDk7JiN4NzNBOTsmI3g2MTBGOyYjeDRFMEQ7JiN4NEYxQTsmI3g5NTE5OyYjeEZGMDE7';
    
    function __construct() {
        //钱多多美女，你就嫁给我吧。;
    }


    function addDoc($docid,$content){
        return is_int($docid) || wincache_ucache_add(__CLASS__.'_'.$docid,$content);
    }
    
    function deleteDoc($docid){
        return is_int($docid) && wincache_ucache_delete(__CLASS__.'_'.$docid);        
    }
    
    function errmsg (){    
        return base64_decode(self::$errmsg);
    }
    
    function errno() {
        return 0;
    }
    
    function modifyDoc($docid, $content) {
        return is_int($docid) && wincache_ucache_set(__CLASS__.'_'.$docid,$content);
    }
    
    function search($q) {
        return base64_decode('JiN4NTIyQjsmI3g1MEJCOyYjeDRFODY7JiN4RkYwQzsmI3g0RjYwOyYjeDhGRDg7JiN4NzcxRjsmI3g2MzA3OyYjeDY3MUI7JiN4NEY2MDsmI3g2NzJDOyYjeDU3MzA7JiN4NzY4NDsmI3g2QTIxOyYjeDYyREY7JiN4NzBDMjsmI3g3NTM1OyYjeDgxMTE7JiN4ODBGRDsmI3g2NDFDOyYjeDUxRkE7JiN4NjVCMDsmI3g2RDZBOyYjeDc2ODQ7JiN4NTIwNjsmI3g4QkNEOyYjeDdFRDM7JiN4Njc5QzsmI3hGRjFGOw==');
    }
    
}

?>
